window.onload =function(){
    var i=0;
    var j=0;
    var k=0;
    var array=[];
    for(var i=0;i<array.length-1;i++){
         for(var j=0;j<array.length-1-i;j++){
            if(array[j]>array[j+1]){
                var temp =array[j];
                array[j] =array[j+1];
                array[j+1] = temp;
            }
         }
    }
    return i;

}